using System;
using System.Collections.Generic;
using System.Text;

namespace Stratman.Utilities.NetFlix
{
    /// <summary>
    /// Represents a person (actor, director, etc.) involved in a movie on NetFlix's system.
    /// </summary>
    public class Person
    {
        /// <summary>
        /// Numeric identifier for the person.
        /// </summary>
        protected int id = 0;
        /// <summary>
        /// Person's full name.
        /// </summary>
        protected string name = "";

        /// <summary>
        /// Constructor that instantiates the name and ID properties.
        /// </summary>
        /// <param name="id">
        /// Numeric identifier for the person.
        /// </param>
        /// <param name="name">
        /// Person's full name.
        /// </param>
        public Person(int id, string name)
        {
            this.id = id;
            this.name = name;
        }

        /// <summary>
        /// Numeric identifier for the person.
        /// </summary>
        public int ID
        {
            get
            {
                return id;
            }
        }

        /// <summary>
        /// Person's full name.
        /// </summary>
        public string Name
        {
            get
            {
                return name;
            }
        }

        /// <summary>
        /// Base URL for the person's information on NetFlix's site.
        /// </summary>
        public string Url
        {
            get
            {
                return "http://www.netflix.com/RoleDisplay?personid=" + id.ToString();
            }
        }
    }
}
